import React from 'react';
import styles from './index.module.less';

export interface AvatarProps {
  name: string;
}

const Avatar: React.FC<AvatarProps> = (props) => {
  return (
    <div className={styles.avatar}>{props.name?.substr(-2)}</div>
  );
};

export default Avatar;